﻿// Author: Jesse Liu http://jesse2013.cnblogs.com

using System.Collections.Generic;
using System.Linq;
using System;
using System.Linq.Expressions;

namespace RepositoryAndEf.Core.Data
{
    public partial interface IRepository<T> where T : BaseEntity
    {
        T GetById(Guid id);

        IEnumerable<T> Get(
            Expression<Func<T, Boolean>> predicate);

        bool Insert(T entity);
        bool Update(T entity);
        bool Delete(T entity);
    }
}
